home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / the_flor.swf / scripts / DefineSprite_126 / frame_2 / DoAction.as
Text File  |  2008-11-12  |  541b  |  29 lines

  1. if(random("3") == "1" and eval("/:numUp") < "3" and eval("/:total") != "50")
  2. {
  3.    found = "0";
  4.    num = random("16") + "1";
  5.    while(found == "0")
  6.    {
  7.       if(eval("/target" add num add "/:open") == "0")
  8.       {
  9.          found = "1";
  10.       }
  11.       else
  12.       {
  13.          num = random("16") + "1";
  14.       }
  15.    }
  16.    set("/:total",eval("/:total") + "1");
  17.    tellTarget("/target" add num)
  18.    {
  19.       play();
  20.    }
  21. }
  22. if(eval("/:total") == "50" and eval("/:numUp") == "0")
  23. {
  24.    tellTarget("/")
  25.    {
  26.       play();
  27.    }
  28. }
  29.